import 'package:flutter/material.dart';
import 'package:flutter_shop_z/config/service_url.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

//广告图片
class AdBanner extends StatelessWidget {
  final String adImg;
  AdBanner(this.adImg);

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.only(top: 8, bottom: 8),
      height: ScreenUtil().setHeight(70),
      width: ScreenUtil().setWidth(750),
      child: Image.network(
        "${serviceUrl}${adImg}",
        fit: BoxFit.fill,
      ),
    );
  }
}
